package com.haifeng.CRUD.service.impl;

import com.haifeng.CRUD.dao.impl.UserDaoImpl;
import com.haifeng.CRUD.domain.User;
import com.haifeng.CRUD.service.LoginService;

import java.util.List;

public class LoginServiceImpl implements LoginService {
    @Override
    public User userLogin(User loginUser) {
        return new UserDaoImpl().findUserByNameAndPassword(loginUser);

    }
}
